import request from '../../../utils/request';

export const getData = query => {
    return request({
        url: '/api/upp/parameters/doMain',
        method: 'post',
        params: query
    });
};

export const selectById = query => {
    return request({
        url: '/api/upp/parameters/selectById',
        method: 'post',
        params: query
    });
};

export const doAdd = query => {
    return request({
        url: '/api/upp/parameters/doAdd',
        method: 'post',
        data: query
    });
};

export const doUpdate = query => {
    return request({
        url: '/api/upp/parameters/doUpdate',
        method: 'post',
        data: query
    });
};

export const doDelete = query => {
    return request({
        url: '/api/upp/parameters/doDelete',
        method: 'post',
        params: query
    });
};
